﻿using System;
using System.Web.Mvc;
using Microsoft.Practices.Unity;

namespace RefLib.Branding.MVC
{
    public class BrandingController : Controller
    {
        [Dependency]
        public IBrandingService BrandingService { get; set; }

        public FileContentResult BrandedImage(Guid id)
        {
            BlobModel blob = BrandingService.GetBlobByGuid(id);
            return File(blob.Blob, blob.MimeType);
        }
    }
}
